package com.blacktry.entity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 考试管理表
 * </p>
 *
 * @author blackTry
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ExamManage对象", description="考试管理表")
public class ExamManage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "该次考试介绍")
    private String description;

    @ApiModelProperty(value = "课程名称")
    private String source;

    @ApiModelProperty(value = "试卷编号")
    private Integer paperId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "考试日期")
    private String examDate;

    @ApiModelProperty(value = "持续时长")
    private Integer totalTime;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "班级")
    private String className;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "学院")
    private String institute;

    @ApiModelProperty(value = "总分")
    private Integer totalScore;

    @ApiModelProperty(value = "发布人id")
    private String createId;

    @ApiModelProperty(value = "考生须知")
    private String tips;

    @ApiModelProperty(value = "可看程度")
    private Integer can;

    @ApiModelProperty(value = "开关")
    private Integer enable;


}
